season_month_dict = dict([(1, ['1月', '2月', '3月']),
                          (2, ['4月', '5月', '6月']),
                          (3, ['7月', '8月', '9月']),
                          (4, ['10月', '11月', '12月'])])

season = int(input('请输入季度:'))
# 判断键是否存在
if season in season_month_dict:
    print(season_month_dict[season])
else:
    print('输入有误！')


